class Student{
    private int age;
    private String name;
    public Student(int age,String name){
        this.name=name;
        this.age=age;
    }
    void eat(){
        System.out.println(this.name+"在上课"+this.age);
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName(String name) {
        return name;
    }
}
public class text1 {


    public static class c {
        public void main(String[] args) {
            Student student=new Student(18,"ZHNAGSAN");
            student.eat();
            System.out.println(student.getName());
            System.out.println(student.getAge());
            student.setName("好好");
            student.setAge(666);
            System.out.println(student.getName());
            System.out.println(student.getAge());
        }
    }
}
